package tech.kunyuan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.kunyuan.domain.Code;
import tech.kunyuan.mapper.CodeMapper;
import tech.kunyuan.service.CodeService;

import java.util.List;

/**
 * Description:
 *
 * @Author: ky
 * DateTime: 2022-10-20 10:20
 */
@Service
public class CodeServiceImpl implements CodeService {
    @Autowired
    private CodeMapper codeMapper;


    public List<Code> queryAll(Code resources){
        return codeMapper.queryAll(resources);
    }

    public Code queryOne(Integer id){
        return codeMapper.queryOne(id);
    }
}
